package com.tourism.home.service;

import com.tourism.home.dao.ReportDao;
import com.tourism.home.entity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportService {

    @Autowired
    ReportDao reportDao;

    public Integer addReportU(String content,Integer ouid,Integer uid){return reportDao.addReportU(content,ouid,uid);}

    public Integer addReportP(String content,Integer pid,Integer uid){return reportDao.addReportP(content,pid,uid);}
    public List<Integer> getReportPostUIDs(Integer pid){return reportDao.getReportPostUIDs(pid);}
    public List<Integer> getReportUserUIDs(Integer ouid){return reportDao.getReportUserUIDs(ouid);}
}
